import request from "@/utils/request.js";

export function ApiFlowList (data) {
    return request({
        url: '/v1/flow/list',
        method: 'get',
        params: data
    })
}

export function ApiFlowDetail (data) {
    return request({
        url: '/v1/flow/detail',
        method: 'get',
        params: data
    })
}

export function ApiFlowCreate (data) {
    return request({
        url: '/v1/flow/create',
        method: 'post',
        data: data
    })
}

export function ApiFlowUpdate (data) {
    return request({
        url: '/v1/flow/update',
        method: 'post',
        data: data
    })
}

export function ApiFlowStart (data) {
    return request({
        url: '/v1/flow/start',
        method: 'post',
        params: data
    })
}

export function ApiLatestLog (data) {
    return request({
        url: '/v1/flow/latest-log',
        method: 'post',
        params: data
    })
}

export function ApiFlowDelete (data) {
    return request({
        url: '/v1/flow/delete',
        method: 'post',
        data: data
    })
}
